FROM python:2

WORKDIR /usr/src/app

COPY requirements.txt ./
RUN pip install --no-cache-dir -r requirements.txt

COPY . .

CMD [ "uwsgi", "--http", ":8001", "--wsgi-file", "deploy_blog.py" ]

# docker build -t uwsgi .
# docker run -d -p 8001:8001 uwsgi
